package staticDemo2;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-09-28
 * Time: 10:30
 */
public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();

        //创建学生对象
        Student student1 = new Student("zhangsan",23,"男");
        Student student2 = new Student("lisi",12,"男");
        Student student3 = new Student("wangwu",34,"男");

        //添加到集合中
        list.add(student1);
        list.add(student2);
        list.add(student3);

        int ret = MaxAge.maxAge(list);
        System.out.println(ret);
    }
}
